|
|
|
|
|
|
|
' set env/con
Set rdoEnv = rdoEngine.rdoCreateEnvironment("rdoTEMP", "admin", "")
Set rdoCon = rdoEnv.OpenConnection("RDC Books5")
'
' update the tables collection
rdoCon.rdoTables.Refresh
'
' show table properties
For Each rdoTbl In rdoCon.rdoTables
strMsg = strMsg & "Name=" & rdoTbl.Name & vbCrLf
strMsg = strMsg & "RowCount=" & CStr(rdoTbl.RowCount) & vbCrLf
strMsg = strMsg & "Type=" & CStr(rdoTbl.Type) & vbCrLf
strMsg = strMsg & "Updatable=" & CStr(rdoTbl.Updatable)
strMsg = strMsg & vbCrLf
'
MsgBox strMsg, vbInformation, "rdoTable"
strMsg = ""
Next
'
rdoCon.Close
rdoEnv.Close
Set rdoTbl = Nothing
Set rdoCon = Nothing
Set rdoEnv = Nothing
'
End Sub |
|
|
|
|
|
|
|
|
Notice the use of the Refresh method on the rdoTables collection. This is required if you want to get a list of all the table and view objects available from the data source. The rdoTables collection is not automatically refreshed when you create the rdoConnection object. |
|
|
|
|
|
|
|
|
Save and run the project. After you click the RDO Tables button, you'll see a list of the tables and views available from the data source. Figure 18.11 shows one of those displays. |
|
|
|
|
|
|
|
|
Figure 18.11.
Inspecting the rdoTable properties. |
|
|
|
|
|
|
|
|
The rdoColumns object contains detailed information about the contents and properties of each data column in the rdoTable or rdoResultset object. The rdoColumn object corresponds to the Microsoft Jet Field object. Usually, more than one rdoColumn object |
|
|
|
|
|